package it.java.giw.dataextraction.aleph.crawler;

import java.net.URL;
import java.util.concurrent.LinkedBlockingDeque;


public class Main {
	
	private static final int numWorkers = Runtime.getRuntime().availableProcessors();
	
    public static void main( String[] args ) {
    	LinkedBlockingDeque<String> seedList = new LinkedBlockingDeque<String>();
    	
//    	SeedList Hotel
    	seedList.addLast("http://www.venere.com/it/italia/roma/");
    	seedList.addLast("http://www.venere.com/it/italia/venezia/");
    	seedList.addLast("http://www.venere.com/it/italia/milanoo/");
    	seedList.addLast("http://www.venere.com/it/italia/palermo/");
    	
    	//SeedList Libri
//    	seedList.addLast("http://www.lafeltrinelli.it/libri/c-1/0/");
//    	seedList.addLast("http://www.lafeltrinelli.it/libri-letterature-letteratura-italiana/c-20035/0/");
//    	seedList.addLast("http://www.lafeltrinelli.it/libri-letterature-letteratura-internazionale/c-20034/0/");

    	/* seed per mymovies */
    	/*seedList.addLast("http://www.mymovies.it/film/2013/");
    	seedList.addLast("http://www.mymovies.it/film/1955/");
        seedList.addLast("http://www.mymovies.it/film/1965/");
        seedList.addLast("http://www.mymovies.it/film/1975/");
        seedList.addLast("http://www.mymovies.it/film/1985/");
        seedList.addLast("http://www.mymovies.it/film/1995/");
        seedList.addLast("http://www.mymovies.it/film/2005/");
        */
    	/* seed per film.it */

    	//seedList.addLast("http://www.film.it/film/film-a-z/");
    	
    	/* seed per comingsoon.it */
    	/*
    	seedList.addLast("http://www.comingsoon.it/cinema/filmalcinema/");
    	seedList.addLast("http://www.comingsoon.it/cinema/calendariouscite/");
    	seedList.addLast("http://www.comingsoon.it/cinema/filmpiuattesi/");
    	 */
    	/* seed per cinemadelsilenzio.it */
    	
//    	seedList.addLast("http://www.cinemadelsilenzio.it/index.php?mod=film&id=20987");
//    	seedList.addLast("http://www.cinemadelsilenzio.it/index.php?mod=film");
//    	seedList.addLast("http://www.cinemadelsilenzio.it/index.php?mod=film&where=3");
//    	
    	/* seed per bestmovie */
    	/*
    	seedList.addLast("http://www.bestmovie.it/film-trailer/");
    	 */
    	
    	long startTime = System.currentTimeMillis();
    	CrawlerMaster master = new CrawlerMaster(numWorkers, seedList);
    	master.start();
    	long endTime = System.currentTimeMillis();
    	
    	System.out.println("Elapsed Time: " + (endTime - startTime) + "ms");
    }
}
